var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("LoadRes"),
    a = (function () {
        function e() {
            (this.SW_SystemBanner = !1),
                (this.SW_SystemInters = !1),
                (this.SW_Video = !1),
                (this.SW_Native = !1),
                (this.SW_NativeBanner = !1),
                (this.SW_NativeInters = !1),
                (this.SW_Box = !1),
                (this.SW_Block = !1),
                (this.SW_BigNative = !1),
                (this.SW_IconNative = !1),
                (this.ID_SystemBanner = ""),
                (this.ID_SystemInters = ""),
                (this.ID_Native = ""),
                (this.ID_NativeCustom = ""),
                (this.ID_Video = ""),
                (this.ID_Box = ""),
                (this.ID_Block = ""),
                (this.NUM_NativeIntersP = 0),
                (this.NUM_NativeIntersReport = 1),
                (this.NUM_BannerErrP = 0),
                (this.NUM_BannerErrMost = 0),
                (this.NUM_BannerErrMust = 0),
                (this.NUM_VideoErrP = 0),
                (this.NUM_VideoErrMost = 0),
                (this.NUM_VideoErrMust = 0),
                (this.NUM_BannerUpdateTime = 30),
                (this.SW_SystemBannerFirst = !0),
                (this.NUM_BannerMostShow = 99),
                (this.SW_IntersBaseControl = !1),
                (this.NUM_IntersStart = 0),
                (this.NUM_IntersIntervalNum = 0),
                (this.NUM_IntersIntervalTime = 0),
                (this.NUM_IntersDelayTime = 0),
                (this.NUM_IntersDelayP = 0),
                (this.NUM_NativeUpdateTime = 30),
                (this.SW_AddDesktop = !1),
                (this.SW_IntersIntervalToAddDesktop = !1),
                (this.NUM_AutoAddDeskMostTimes = 0),
                (this.NUM_IntersToAddDesktopNumber = 0),
                (this.SW_Statistics = !0),
                (this.SW_NavigateIcon = !1),
                (this.SW_NavigateGroup = !1),
                (this.SW_NavigateSettle = !1),
                (this.pushGameList = []),
                (this.hasShowBanner = !1),
                (this.isShow_Inters = !1),
                (this.isShow_Video = !1),
                (this.isShow_NativeIcon = !1),
                (this.isShow_NativeImage = !1),
                (this.isShow_NavigateIcon = !1),
                (this.isShow_NavigateGroup = !1),
                (this.isShow_NavigateSettle = !1),
                (this.isShow_NavigateSettle1 = !1),
                (this.isShow_NavigateBoxBanner = !1),
                (this.isShow_NavigateBoxPortal = !1),
                (this.isShow_MoreGamesBanner = !1),
                (this.isShow_Block = !1),
                (this.isShow_PrivacyAgreement = !1),
                (this.isShow_ErrBanner = !1),
                (this.node_testBanner = null),
                (this.node_testInters = null),
                (this.node_testVideo = null),
                (this.node_testNativeIcon = null),
                (this.node_testNativeImage = null),
                (this.node_testNavigateIcon = null),
                (this.node_testNavigateGroup = null),
                (this.node_testNavigateSettle = null),
                (this.node_testNavigateBoxBanner = null),
                (this.node_testNavigateBoxPortal = null),
                (this.node_testMoreGamesBanner = null),
                (this.node_testBlock = null),
                (this.node_testPrivacyAgreement = null),
                (this.node_testErrBanner = null),
                (this.errBannerHasShowBanner = !1),
                (this.AdGroup = "");
        }
        return (
            (e.prototype.getGameTestVersion = function () {
                return !1;
            }),
            (e.prototype.createAd = function () {}),
            (e.prototype.startLoadPushGamaes = function () {}),
            (e.prototype.showBanner = function () {
                var e = this;
                this.isShow_NavigateSettle1
                    ? console.log("ChaoQiGameSDK", "正在展示结算互推1,无法showBanner")
                    : this.hasShowBanner
                    ? console.log("ChaoQiGameSDK", "已经调用过showBanner,请勿重复调用")
                    : ((this.hasShowBanner = !0),
                      console.log("ChaoQiGameSDK", "Test showBanner=================="),
                      n.default.loadResArray(
                          ["https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestBanner.png"],
                          function (t, o) {
                              (e.node_testBanner = new cc.Node("node_testBanner")),
                                  e.getScene().addChild(e.node_testBanner),
                                  e.node_testBanner.addComponent(cc.Sprite),
                                  (e.node_testBanner.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(o[0])),
                                  e.node_testBanner.addComponent(cc.Widget),
                                  (e.node_testBanner.getComponent(cc.Widget).isAlignHorizontalCenter = !0),
                                  cc.winSize.width < cc.winSize.height
                                      ? ((e.node_testBanner.width = cc.winSize.width),
                                        (e.node_testBanner.height = 0.18 * e.node_testBanner.width))
                                      : ((e.node_testBanner.width = cc.winSize.width / 2),
                                        (e.node_testBanner.height = 0.18 * e.node_testBanner.width)),
                                  (e.node_testBanner.y = e.node_testBanner.height / 2),
                                  (e.node_testBanner.zIndex = 3e4),
                                  "" != e.AdGroup && (e.node_testBanner.group = e.AdGroup);
                          }
                      ));
            }),
            (e.prototype.hideBanner = function () {
                (this.hasShowBanner = !1),
                    this.node_testBanner &&
                        (console.log("ChaoQiGameSDK", "Test hideBanner=================="),
                        this.node_testBanner.removeFromParent(),
                        (this.node_testBanner = null));
            }),
            (e.prototype.getIntersFlag = function () {
                return !0;
            }),
            (e.prototype.showInters = function () {
                var e = this;
                this.isShow_Inters
                    ? console.log("ChaoQiGameSDK", "已经调用过showInters,请勿重复调用")
                    : ((this.isShow_Inters = !0),
                      console.log("ChaoQiGameSDK", "Test showInters=================="),
                      n.default.loadResArray(
                          [
                              "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestBlackBg.png",
                              "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestIntersClose.png"
                          ],
                          function (t, o) {
                              var n = e.getScene();
                              (e.node_testInters = new cc.Node("node_testInters")),
                                  n.addChild(e.node_testInters),
                                  e.node_testInters.addComponent(cc.Sprite),
                                  (e.node_testInters.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(o[0])),
                                  (e.node_testInters.width = cc.winSize.width),
                                  (e.node_testInters.height = cc.winSize.height),
                                  (e.node_testInters.x = cc.winSize.width / 2),
                                  (e.node_testInters.y = cc.winSize.height / 2),
                                  (e.node_testInters.zIndex = 30003),
                                  (e.node_testInters.opacity = 150),
                                  "" != e.AdGroup && (e.node_testInters.group = e.AdGroup),
                                  e.node_testInters.on(cc.Node.EventType.TOUCH_START, function () {});
                              var a = new cc.Node("text");
                              e.node_testInters.addChild(a),
                                  (a.color = cc.Color.RED),
                                  a.addComponent(cc.Label),
                                  (a.getComponent(cc.Label).string = "这是一个测试插屏,请点击右上角关闭"),
                                  (a.getComponent(cc.Label).fontSize = 50),
                                  (a.getComponent(cc.Label).lineHeight = 50);
                              var i = new cc.Node("TestIntersClose");
                              e.node_testInters.addChild(i),
                                  i.addComponent(cc.Sprite),
                                  (i.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(o[1])),
                                  (i.x = ((cc.winSize.width / 2) * 3) / 4),
                                  (i.y = ((cc.winSize.height / 2) * 3) / 5),
                                  (i.zIndex = 30010),
                                  i.on(cc.Node.EventType.TOUCH_START, function () {
                                      console.log("ChaoQiGameSDK", "关闭测试插屏"),
                                          (e.isShow_Inters = !1),
                                          e.node_testInters.removeFromParent(),
                                          (e.node_testInters = null);
                                  });
                          }
                      ));
            }),
            (e.prototype.getVideoFlag = function () {
                return !0;
            }),
            (e.prototype.showVideo = function (e) {
                var t = this;
                this.isShow_Video
                    ? console.log("ChaoQiGameSDK", "已经调用过showVideo,请勿重复调用")
                    : ((this.isShow_Video = !0),
                      console.log("ChaoQiGameSDK", "Test showVideo=================="),
                      n.default.loadResArray(
                          ["https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestBlackBg.png"],
                          function (o, n) {
                              var a = t.getScene();
                              (t.node_testVideo = new cc.Node("node_testVideo")),
                                  a.addChild(t.node_testVideo),
                                  t.node_testVideo.addComponent(cc.Sprite),
                                  (t.node_testVideo.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[0])),
                                  t.node_testVideo.addComponent(cc.Widget),
                                  (t.node_testVideo.getComponent(cc.Widget).isAlignVerticalCenter = !0),
                                  (t.node_testVideo.getComponent(cc.Widget).isAlignHorizontalCenter = !0),
                                  setTimeout(function () {
                                      (t.node_testVideo.width = cc.winSize.width),
                                          (t.node_testVideo.height = cc.winSize.height),
                                          (t.node_testVideo.x = cc.winSize.width / 2),
                                          (t.node_testVideo.y = cc.winSize.height / 2),
                                          (t.node_testVideo.opacity = 200),
                                          (t.node_testVideo.zIndex = 29999);
                                  }, 1),
                                  "" != t.AdGroup && (t.node_testVideo.group = t.AdGroup);
                              var i = new cc.Node("titleLabel");
                              t.node_testVideo.addChild(i),
                                  i.addComponent(cc.Label),
                                  (i.getComponent(cc.Label).fontSize = 50),
                                  (i.getComponent(cc.Label).lineHeight = 50),
                                  (i.getComponent(cc.Label).string = "视频播放回调的测试"),
                                  (i.width = cc.winSize.width),
                                  (i.y = cc.winSize.height / 5);
                              var r = new cc.Node("succBtn");
                              t.node_testVideo.addChild(r),
                                  r.addComponent(cc.Label),
                                  (r.getComponent(cc.Label).fontSize = 30),
                                  (r.getComponent(cc.Label).lineHeight = 30),
                                  (r.getComponent(cc.Label).string = "播放成功"),
                                  (r.x = -cc.winSize.width / 5),
                                  (r.y = -cc.winSize.height / 5),
                                  r.on(cc.Node.EventType.TOUCH_START, function () {
                                      (t.isShow_Video = !1),
                                          t.node_testVideo.removeFromParent(),
                                          (t.node_testVideo = null),
                                          e(!0);
                                  });
                              var s = new cc.Node("failBtn");
                              t.node_testVideo.addChild(s),
                                  s.addComponent(cc.Label),
                                  (s.getComponent(cc.Label).fontSize = 30),
                                  (s.getComponent(cc.Label).lineHeight = 30),
                                  (s.getComponent(cc.Label).string = "播放失败"),
                                  (s.x = cc.winSize.width / 5),
                                  (s.y = -cc.winSize.height / 5),
                                  s.on(cc.Node.EventType.TOUCH_START, function () {
                                      (t.isShow_Video = !1),
                                          t.node_testVideo.removeFromParent(),
                                          (t.node_testVideo = null),
                                          e(!1);
                                  });
                          }
                      ));
            }),
            (e.prototype.getNativeIconFlag = function () {
                return !0;
            }),
            (e.prototype.showNativeIcon = function (e, t, o, a) {
                var i = this;
                this.isShow_NativeIcon
                    ? console.log("ChaoQiGameSDK", "已经调用过showNativeIcon,请勿重复调用")
                    : ((this.isShow_NativeIcon = !0),
                      console.log("ChaoQiGameSDK", "Test showNativeIcon=================="),
                      n.default.loadResArray(
                          ["https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNativeIcon.png"],
                          function (n, r) {
                              var s = i.getScene();
                              (i.node_testNativeIcon = new cc.Node("node_testNativeIcon")),
                                  s.addChild(i.node_testNativeIcon),
                                  i.node_testNativeIcon.addComponent(cc.Sprite),
                                  (i.node_testNativeIcon.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(
                                      r[0]
                                  )),
                                  (i.node_testNativeIcon.width = e),
                                  (i.node_testNativeIcon.height = t),
                                  (i.node_testNativeIcon.x = o),
                                  (i.node_testNativeIcon.y = a),
                                  (i.node_testNativeIcon.zIndex = 29999),
                                  "" != i.AdGroup && (i.node_testNativeIcon.group = i.AdGroup);
                          }
                      ));
            }),
            (e.prototype.hideNativeIcon = function () {
                (this.isShow_NativeIcon = !1),
                    this.node_testNativeIcon &&
                        (console.log("ChaoQiGameSDK", "Test hideNativeIcon=================="),
                        this.node_testNativeIcon.removeFromParent(),
                        (this.node_testNativeIcon = null));
            }),
            (e.prototype.getNativeImageFlag = function () {
                return !0;
            }),
            (e.prototype.showNativeImage = function (e, t, o, a) {
                var i = this;
                this.isShow_NativeImage
                    ? console.log("ChaoQiGameSDK", "已经调用过showNativeImage,请勿重复调用")
                    : ((this.isShow_NativeImage = !0),
                      console.log("ChaoQiGameSDK", "Test showNativeImage=================="),
                      n.default.loadResArray(
                          ["https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNativeImage.png"],
                          function (n, r) {
                              var s = i.getScene();
                              (i.node_testNativeImage = new cc.Node("node_testNativeImage")),
                                  s.addChild(i.node_testNativeImage),
                                  i.node_testNativeImage.addComponent(cc.Sprite),
                                  (i.node_testNativeImage.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(
                                      r[0]
                                  )),
                                  (i.node_testNativeImage.width = e),
                                  (i.node_testNativeImage.height = t),
                                  (i.node_testNativeImage.x = o),
                                  (i.node_testNativeImage.y = a),
                                  (i.node_testNativeImage.zIndex = 29999),
                                  "" != i.AdGroup && (i.node_testNativeImage.group = i.AdGroup);
                          }
                      ));
            }),
            (e.prototype.hideNativeImage = function () {
                (this.isShow_NativeImage = !1),
                    this.node_testNativeImage &&
                        (console.log("ChaoQiGameSDK", "Test hideNativeImage=================="),
                        this.node_testNativeImage.removeFromParent(),
                        (this.node_testNativeImage = null));
            }),
            (e.prototype.getNativeAdFlag = function () {
                return !0;
            }),
            (e.prototype.getNativeAdInfo = function () {
                return (
                    console.log("ChaoQiGameSDK", "Test getNativeAdInfo=================="),
                    {
                        adId: "88888888",
                        title: "测试标题",
                        desc: "测试详情",
                        Native_icon:
                            "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestGetNativeAdIcon.png",
                        Native_BigImage:
                            "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestGetNativeAdImage.png",
                        NativeAdTip:
                            "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestGetNativeAdAdTip.png",
                        NativeClose:
                            "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestGetNativeAdClose.png"
                    }
                );
            }),
            (e.prototype.reportNativeAdShow = function (e) {
                console.log("ChaoQiGameSDK", "Test reportNativeAdShow==================", e);
            }),
            (e.prototype.reportNativeAdClick = function (e) {
                console.log("ChaoQiGameSDK", "Test reportNativeAdClick==================", e);
            }),
            (e.prototype.getNavigateIconFlag = function () {
                return !0;
            }),
            (e.prototype.showNavigateIcon = function (e, t, o, a) {
                var i = this;
                this.isShow_NavigateIcon
                    ? console.log("ChaoQiGameSDK", "已经调用过showNavigateIcon,请勿重复调用")
                    : ((this.isShow_NavigateIcon = !0),
                      console.log("ChaoQiGameSDK", "Test showNavigateIcon=================="),
                      n.default.loadResArray(
                          ["https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNavigateIcon.png"],
                          function (n, r) {
                              var s = i.getScene();
                              (i.node_testNavigateIcon = new cc.Node("node_testNavigateIcon")),
                                  s.addChild(i.node_testNavigateIcon),
                                  i.node_testNavigateIcon.addComponent(cc.Sprite),
                                  (i.node_testNavigateIcon.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(
                                      r[0]
                                  )),
                                  (i.node_testNavigateIcon.width = e),
                                  (i.node_testNavigateIcon.height = t),
                                  (i.node_testNavigateIcon.x = o),
                                  (i.node_testNavigateIcon.y = a),
                                  (i.node_testNavigateIcon.zIndex = 29999),
                                  "" != i.AdGroup && (i.node_testNavigateIcon.group = i.AdGroup);
                          }
                      ));
            }),
            (e.prototype.hideNavigateIcon = function () {
                (this.isShow_NavigateIcon = !1),
                    this.node_testNavigateIcon &&
                        (console.log("ChaoQiGameSDK", "Test hideNavigateIcon=================="),
                        this.node_testNavigateIcon.removeFromParent(),
                        (this.node_testNavigateIcon = null));
            }),
            (e.prototype.getNavigateGroupFlag = function () {
                return !0;
            }),
            (e.prototype.showNavigateGroup = function (e, t, o, a) {
                var i = this;
                if (this.isShow_NavigateGroup) console.log("ChaoQiGameSDK", "已经调用过showNavigateGroup,请勿重复调用");
                else {
                    (this.isShow_NavigateGroup = !0),
                        console.log("ChaoQiGameSDK", "Test showNavigateGroup==================");
                    var r = this.getScene();
                    (this.node_testNavigateGroup = new cc.Node("node_testNavigateGroup")),
                        r.addChild(this.node_testNavigateGroup),
                        (this.node_testNavigateGroup.x = cc.winSize.width / 2),
                        (this.node_testNavigateGroup.y = cc.winSize.height / 2),
                        n.default.loadResArray(
                            [
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNavigateGroupIconBtn.png",
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNavigateGroupLeftTuck.png",
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNavigateGroupRightTuck.png",
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNavigateGroupListLeft.png",
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNavigateGroupListRight.png"
                            ],
                            function (e, n) {
                                var r = new cc.Node("TestNavigateGroupIconBtn");
                                i.node_testNavigateGroup.addChild(r),
                                    r.addComponent(cc.Sprite),
                                    (r.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[0])),
                                    (r.width = o),
                                    (r.height = o),
                                    "left" == t
                                        ? ((r.x = r.width / 2 - cc.winSize.width / 2), (r.y = a))
                                        : ((r.x = cc.winSize.width / 2 - r.width / 2), (r.y = a));
                                var s = !1,
                                    l = function (e) {
                                        if (((r.active = !1), e)) {
                                            console.log("ChaoQiGameSDK", "在左侧打开互推游戏列表");
                                            var t = new cc.Node("TestNavigateGroupListLeft");
                                            i.node_testNavigateGroup.addChild(t),
                                                t.addComponent(cc.Sprite),
                                                (t.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[3])),
                                                (t.height = cc.winSize.height / 2),
                                                (t.width = t.height / 4.8),
                                                (t.x = -t.width / 2 - cc.winSize.width / 2),
                                                (t.y = 0),
                                                cc
                                                    .tween(t)
                                                    .by(0.2, {position: cc.v3(t.width, 0, 0)})
                                                    .call(function () {
                                                        s = !0;
                                                    })
                                                    .start();
                                            var a = new cc.Node();
                                            t.addChild(a),
                                                a.addComponent(cc.Sprite),
                                                (a.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[1])),
                                                (a.width = 0.5 * t.width),
                                                (a.height = 1.2 * a.width),
                                                (a.x = 0.65 * t.width),
                                                (a.y = 0.3 * t.height),
                                                a.on(cc.Node.EventType.TOUCH_END, function () {
                                                    s &&
                                                        cc
                                                            .tween(t)
                                                            .by(0.5, {position: cc.v3(-t.width, 0, 0)})
                                                            .call(function () {
                                                                (s = !1),
                                                                    (r.active = !0),
                                                                    (r.width = o),
                                                                    (r.height = o),
                                                                    t.destroy();
                                                            })
                                                            .start();
                                                });
                                        } else {
                                            console.log("ChaoQiGameSDK", "在右侧打开互推游戏列表");
                                            var l = new cc.Node("TestNavigateGroupListRight");
                                            i.node_testNavigateGroup.addChild(l),
                                                l.addComponent(cc.Sprite),
                                                (l.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[4])),
                                                (l.height = cc.winSize.height / 2),
                                                (l.width = l.height / 4.8),
                                                (l.x = l.width / 2 + cc.winSize.width / 2),
                                                (l.y = 0),
                                                cc
                                                    .tween(l)
                                                    .by(0.2, {position: cc.v3(-l.width, 0, 0)})
                                                    .call(function () {
                                                        s = !0;
                                                    })
                                                    .start();
                                            var c = new cc.Node();
                                            l.addChild(c),
                                                c.addComponent(cc.Sprite),
                                                (c.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[2])),
                                                (c.width = 0.5 * l.width),
                                                (c.height = 1.2 * c.width),
                                                (c.x = 0.65 * -l.width),
                                                (c.y = 0.3 * l.height),
                                                c.on(cc.Node.EventType.TOUCH_END, function () {
                                                    s &&
                                                        cc
                                                            .tween(l)
                                                            .by(0.5, {position: cc.v3(l.width, 0, 0)})
                                                            .call(function () {
                                                                (s = !1),
                                                                    (r.active = !0),
                                                                    (r.width = o),
                                                                    (r.height = o),
                                                                    l.destroy();
                                                            })
                                                            .start();
                                                });
                                        }
                                    };
                                r.on(cc.Node.EventType.TOUCH_END, function () {
                                    r.x <= 0 ? l(!0) : l(!1);
                                });
                            }
                        );
                }
            }),
            (e.prototype.hideNavigateGroup = function () {
                (this.isShow_NavigateGroup = !1),
                    this.node_testNavigateGroup &&
                        (console.log("ChaoQiGameSDK", "Test hideNavigateGroup=================="),
                        this.node_testNavigateGroup.removeFromParent(),
                        (this.node_testNavigateGroup = null));
            }),
            (e.prototype.getNavigateSettleFlag = function () {
                return !0;
            }),
            (e.prototype.showNavigateSettle = function (e, t, o) {
                var a = this;
                1 == e || 2 == e
                    ? this.isShow_NavigateSettle
                        ? console.log("ChaoQiGameSDK", "已经调用过showNavigateSettle,请勿重复调用")
                        : ((this.isShow_NavigateSettle = !0),
                          1 == e &&
                              cc.winSize.height / cc.winSize.width <= 16 / 9 &&
                              (console.log("ChaoQiGameSDK", "该游戏为横屏游戏或设备分辨率低于16/9 改为展示类型2"),
                              (e = 2),
                              (o = 0)),
                          console.log("ChaoQiGameSDK", "Test showNavigateSettle=================="),
                          n.default.loadResArray(
                              [
                                  "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNavigateSettle1.png",
                                  "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNavigateSettle4.png"
                              ],
                              function (t, n) {
                                  var i = a.getScene();
                                  switch (
                                      ((a.node_testNavigateSettle = new cc.Node("node_testNavigateSettle")),
                                      i.addChild(a.node_testNavigateSettle),
                                      "" != a.AdGroup && (a.node_testNavigateSettle.group = a.AdGroup),
                                      (a.node_testNavigateSettle.zIndex = 3e4),
                                      e)
                                  ) {
                                      case 1:
                                          (a.isShow_NavigateSettle1 = !0),
                                              a.hideBanner(),
                                              a.node_testNavigateSettle.addComponent(cc.Sprite),
                                              (a.node_testNavigateSettle.getComponent(cc.Sprite).spriteFrame =
                                                  new cc.SpriteFrame(n[0])),
                                              cc.winSize.width < cc.winSize.height
                                                  ? ((a.node_testNavigateSettle.width = (9 * cc.winSize.width) / 10),
                                                    (a.node_testNavigateSettle.height =
                                                        (2 * a.node_testNavigateSettle.width) / 3))
                                                  : ((a.node_testNavigateSettle.width = (9 * cc.winSize.height) / 10),
                                                    (a.node_testNavigateSettle.height =
                                                        (2 * a.node_testNavigateSettle.width) / 3)),
                                              (a.node_testNavigateSettle.x = cc.winSize.width / 2),
                                              (a.node_testNavigateSettle.y = a.node_testNavigateSettle.height / 2 + o);
                                          break;
                                      case 2:
                                          a.node_testNavigateSettle.addComponent(cc.Sprite),
                                              (a.node_testNavigateSettle.getComponent(cc.Sprite).spriteFrame =
                                                  new cc.SpriteFrame(n[1])),
                                              cc.winSize.width < cc.winSize.height
                                                  ? ((a.node_testNavigateSettle.width = cc.winSize.width),
                                                    (a.node_testNavigateSettle.height =
                                                        0.3 * a.node_testNavigateSettle.width))
                                                  : ((a.node_testNavigateSettle.width = cc.winSize.width / 2),
                                                    (a.node_testNavigateSettle.height =
                                                        0.25 * a.node_testNavigateSettle.width)),
                                              (a.node_testNavigateSettle.x = cc.winSize.width / 2),
                                              (a.node_testNavigateSettle.y = a.node_testNavigateSettle.height / 2 + o);
                                  }
                              }
                          ))
                    : console.log("ChaoQiGameSDK", "结算互推只存在类型1和类型2 return");
            }),
            (e.prototype.hideNavigateSettle = function () {
                (this.isShow_NavigateSettle = !1),
                    (this.isShow_NavigateSettle1 = !1),
                    this.node_testNavigateSettle &&
                        (console.log("ChaoQiGameSDK", "Test hideNavigateSettle=================="),
                        this.node_testNavigateSettle.removeFromParent(),
                        (this.node_testNavigateSettle = null));
            }),
            (e.prototype.getNavigateBoxBannerFlag = function () {
                return !0;
            }),
            (e.prototype.showNavigateBoxBanner = function () {
                var e = this;
                this.isShow_NavigateBoxBanner
                    ? console.log("ChaoQiGameSDK", "已经调用过showNavigateBoxBanner,请勿重复调用")
                    : ((this.isShow_NavigateBoxBanner = !0),
                      this.hideBanner(),
                      console.log("ChaoQiGameSDK", "Test showNavigateBoxBanner=================="),
                      n.default.loadResArray(
                          [
                              "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNavigateBoxBanner.png"
                          ],
                          function (t, o) {
                              var n = e.getScene();
                              (e.node_testNavigateBoxBanner = new cc.Node("node_testNavigateBoxBanner")),
                                  n.addChild(e.node_testNavigateBoxBanner),
                                  "" != e.AdGroup && (e.node_testNavigateBoxBanner.group = e.AdGroup),
                                  (e.node_testNavigateBoxBanner.zIndex = 3e4),
                                  e.node_testNavigateBoxBanner.addComponent(cc.Sprite),
                                  (e.node_testNavigateBoxBanner.getComponent(cc.Sprite).spriteFrame =
                                      new cc.SpriteFrame(o[0])),
                                  cc.winSize.width < cc.winSize.height
                                      ? ((e.node_testNavigateBoxBanner.width = (9 * cc.winSize.width) / 10),
                                        (e.node_testNavigateBoxBanner.height = e.node_testNavigateBoxBanner.width / 3))
                                      : ((e.node_testNavigateBoxBanner.width = (9 * cc.winSize.height) / 10),
                                        (e.node_testNavigateBoxBanner.height = e.node_testNavigateBoxBanner.width / 3)),
                                  (e.node_testNavigateBoxBanner.x = cc.winSize.width / 2),
                                  (e.node_testNavigateBoxBanner.y = e.node_testNavigateBoxBanner.height / 2);
                          }
                      ));
            }),
            (e.prototype.hideNavigateBoxBanner = function () {
                (this.isShow_NavigateBoxBanner = !1),
                    this.node_testNavigateBoxBanner &&
                        (console.log("ChaoQiGameSDK", "Test hideNavigateBoxBanner=================="),
                        this.node_testNavigateBoxBanner.removeFromParent(),
                        (this.node_testNavigateBoxBanner = null));
            }),
            (e.prototype.getNavigateBoxPortalFlag = function () {
                return !0;
            }),
            (e.prototype.showNavigateBoxPortal = function () {
                var e = this;
                if (this.isShow_NavigateBoxPortal)
                    console.log("ChaoQiGameSDK", "已经调用过showNavigateBoxPortal,请勿重复调用");
                else {
                    this.isShow_NavigateBoxPortal = !0;
                    var t = this.hasShowBanner;
                    this.hideBanner(),
                        console.log("ChaoQiGameSDK", "Test showNavigateBoxPortal=================="),
                        n.default.loadResArray(
                            [
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestBlackBg.png",
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNavigateBoxPortal.png",
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestNavigateBoxPortalClose.png"
                            ],
                            function (o, n) {
                                var a = e.getScene();
                                (e.node_testNavigateBoxPortal = new cc.Node("TestBlackBg")),
                                    a.addChild(e.node_testNavigateBoxPortal),
                                    e.node_testNavigateBoxPortal.addComponent(cc.Sprite),
                                    (e.node_testNavigateBoxPortal.getComponent(cc.Sprite).spriteFrame =
                                        new cc.SpriteFrame(n[0])),
                                    e.node_testNavigateBoxPortal.addComponent(cc.Widget),
                                    (e.node_testNavigateBoxPortal.getComponent(cc.Widget).isAlignVerticalCenter = !0),
                                    (e.node_testNavigateBoxPortal.getComponent(cc.Widget).isAlignHorizontalCenter = !0),
                                    (e.node_testNavigateBoxPortal.width = cc.winSize.width),
                                    (e.node_testNavigateBoxPortal.height = cc.winSize.height),
                                    (e.node_testNavigateBoxPortal.zIndex = 3e4),
                                    "" != e.AdGroup && (e.node_testNavigateBoxPortal.group = e.AdGroup);
                                var i = new cc.Node("testNavigateBoxPortal");
                                e.node_testNavigateBoxPortal.addChild(i),
                                    i.addComponent(cc.Sprite),
                                    (i.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[1])),
                                    (i.width = 520),
                                    (i.height = 628);
                                var r = new cc.Node("TestNavigateBoxPortalClose");
                                i.addChild(r),
                                    r.addComponent(cc.Sprite),
                                    (r.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[2])),
                                    (r.width = 50),
                                    (r.height = 50),
                                    (r.x = i.width / 2 - r.width / 2),
                                    (r.y = (13 * i.height) / 32 - r.height / 2),
                                    r.on(cc.Node.EventType.TOUCH_START, function () {
                                        e.node_testNavigateBoxPortal &&
                                            (e.node_testNavigateBoxPortal.removeFromParent(),
                                            (e.node_testNavigateBoxPortal = null)),
                                            t && e.showBanner();
                                    });
                            }
                        );
                }
            }),
            (e.prototype.setGroup = function (e) {
                this.AdGroup = e;
            }),
            (e.prototype.hasAddDesktopFunc = function () {
                return !0;
            }),
            (e.prototype.getAddDesktopFlag = function (e) {
                e(!0);
            }),
            (e.prototype.addDesktop = function (e) {
                e(!0);
            }),
            (e.prototype.phoneVibrate = function () {}),
            (e.prototype.startGameVideo = function (e) {
                console.log("ChaoQiGameSDK", "Test startGameVideo==================", e);
            }),
            (e.prototype.pauseGameVideo = function () {
                console.log("ChaoQiGameSDK", "Test pauseGameVideo==================");
            }),
            (e.prototype.resumeGameVideo = function () {
                console.log("ChaoQiGameSDK", "Test resumeGameVideo==================");
            }),
            (e.prototype.stopGameVideo = function (e) {
                console.log("ChaoQiGameSDK", "Test stopGameVideo=================="), e("0");
            }),
            (e.prototype.shareVideo = function (e, t, o, n, a) {
                console.log("ChaoQiGameSDK", "Test shareVideo=================="), a(!0);
            }),
            (e.prototype.jumpToMoreGamesCenter = function () {
                console.log("ChaoQiGameSDK", "Test jumpToMoreGamesCenter==================");
            }),
            (e.prototype.showMoreGamesBanner = function () {
                var e = this;
                console.log("ChaoQiGameSDK", "Test showMoreGamesBanner=================="),
                    this.isShow_MoreGamesBanner
                        ? console.log("ChaoQiGameSDK", "已经调用过showMoreGamesBanner,请勿重复调用")
                        : ((this.isShow_MoreGamesBanner = !0),
                          this.hideBanner(),
                          console.log("ChaoQiGameSDK", "Test showMoreGamesBanner=================="),
                          n.default.loadResArray(
                              [
                                  "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestMoreGamesBanner.png"
                              ],
                              function (t, o) {
                                  var n = e.getScene();
                                  (e.node_testMoreGamesBanner = new cc.Node("node_testMoreGamesBanner")),
                                      n.addChild(e.node_testMoreGamesBanner),
                                      e.node_testMoreGamesBanner.addComponent(cc.Sprite),
                                      (e.node_testMoreGamesBanner.getComponent(cc.Sprite).spriteFrame =
                                          new cc.SpriteFrame(o[0])),
                                      e.node_testMoreGamesBanner.addComponent(cc.Widget),
                                      (e.node_testMoreGamesBanner.getComponent(cc.Widget).isAlignBottom = !0),
                                      (e.node_testMoreGamesBanner.getComponent(cc.Widget).isAlignHorizontalCenter = !0),
                                      (e.node_testMoreGamesBanner.width = 900),
                                      (e.node_testMoreGamesBanner.height = 312),
                                      (e.node_testMoreGamesBanner.zIndex = 3e4),
                                      "" != e.AdGroup && (e.node_testMoreGamesBanner.group = e.AdGroup);
                              }
                          ));
            }),
            (e.prototype.hideMoreGamesBanner = function () {
                (this.isShow_MoreGamesBanner = !1),
                    this.node_testMoreGamesBanner &&
                        (console.log("ChaoQiGameSDK", "Test hideMoreGamesBanner=================="),
                        this.node_testMoreGamesBanner.removeFromParent(),
                        (this.node_testMoreGamesBanner = null));
            }),
            (e.prototype.showFavoriteGuide = function () {
                console.log("ChaoQiGameSDK", "Test showFavoriteGuide=================="),
                    console.log("ChaoQiGameSDK", "Test 没有测试收藏引导");
            }),
            (e.prototype.getUserData = function (e) {
                console.log("ChaoQiGameSDK", "Test getUserData=================="),
                    e({userId: "testUserId", token: "testToken", userType: 1});
            }),
            (e.prototype.getUserInfo = function (e) {
                console.log("ChaoQiGameSDK", "Test getUserInfo=================="),
                    e({head: "", name: "", sex: "", city: "", province: "", country: "", power: !0});
            }),
            (e.prototype.getBoxFlag = function () {
                return !1;
            }),
            (e.prototype.showAppBox = function () {
                console.log("ChaoQiGameSDK", "Test showAppBox=================="),
                    console.log("ChaoQiGameSDK", "Test 没有测试盒子广告");
            }),
            (e.prototype.getBlockFlag = function () {
                return !0;
            }),
            (e.prototype.showBlock = function (e, t, o) {
                var a = this;
                this.isShow_Block
                    ? console.log("ChaoQiGameSDK", "已经调用过showBlock,请勿重复调用")
                    : ((this.isShow_Block = !0),
                      console.log("ChaoQiGameSDK", "Test showBlock=================="),
                      n.default.loadResArray(
                          ["https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestBlockIcon.png"],
                          function (e, n) {
                              var i = a.getScene();
                              (a.node_testBlock = new cc.Node("node_testBlock")),
                                  i.addChild(a.node_testBlock),
                                  a.node_testBlock.addComponent(cc.Sprite),
                                  (a.node_testBlock.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[0])),
                                  (a.node_testBlock.width = 200),
                                  (a.node_testBlock.height = 200),
                                  (a.node_testBlock.x = t + a.node_testBlock.width / 2),
                                  (a.node_testBlock.y = o - a.node_testBlock.height / 2),
                                  (a.node_testBlock.zIndex = 29999),
                                  "" != a.AdGroup && (a.node_testBlock.group = a.AdGroup);
                          }
                      ));
            }),
            (e.prototype.hideBlock = function () {
                (this.isShow_Block = !1),
                    this.node_testBlock &&
                        (console.log("ChaoQiGameSDK", "Test hideBlock=================="),
                        this.node_testBlock.removeFromParent(),
                        (this.node_testBlock = null));
            }),
            (e.prototype.getVideoIntersFlag = function () {
                return !0;
            }),
            (e.prototype.showVideoInters = function (e) {
                console.log("ChaoQiGameSDK", "Test showVideoInters=================="), e(!0);
            }),
            (e.prototype.exitTheGame = function () {
                console.log("ChaoQiGameSDK", "Test exitTheGame==================");
            }),
            (e.prototype.reportAnalytics = function () {
                console.log("ChaoQiGameSDK", "Test reportAnalytics==================");
            }),
            (e.prototype.showAuthentication = function () {
                console.log("ChaoQiGameSDK", "Test showAuthentication==================");
            }),
            (e.prototype.visitorExperience = function () {
                console.log("ChaoQiGameSDK", "Test visitorExperience==================");
            }),
            (e.prototype.showNativeAd = function () {
                console.log("ChaoQiGameSDK", "Test showNativeAd==================");
            }),
            (e.prototype.getOPPOShowMoreGameFlag = function () {
                return !0;
            }),
            (e.prototype.showOPPOMoreGame = function () {
                console.log("ChaoQiGameSDK", "Test showOPPOMoreGame==================");
            }),
            (e.prototype.hasNetwork = function (e) {
                console.log("ChaoQiGameSDK", "Test hasNetwork=================="), e(!0);
            }),
            (e.prototype.showReviewAlert = function () {
                console.log("ChaoQiGameSDK", "Test showReviewAlert==================");
            }),
            (e.prototype.showiOSADWithScene = function () {
                console.log("ChaoQiGameSDK", "Test showiOSADWithScene==================");
            }),
            (e.prototype.showiOSADWithType = function () {
                console.log("ChaoQiGameSDK", "Test showiOSADWithType==================");
            }),
            (e.prototype.videoUIShow = function () {
                console.log("ChaoQiGameSDK", "Test videoUIShow==================");
            }),
            (e.prototype.showPrivacyAgreement = function (e, t, o) {
                var a = this;
                if (this.isShow_PrivacyAgreement)
                    console.log("ChaoQiGameSDK", "已经调用过showPrivacyAgreement,请勿重复调用");
                else {
                    (this.isShow_PrivacyAgreement = !0),
                        console.log("ChaoQiGameSDK", "Test showPrivacyAgreement=================="),
                        "" == e &&
                            (e =
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/PrivacyAgreement/companyLogUrl_Xplay.png"),
                        "" == t &&
                            (t =
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/PrivacyAgreement/htmlUrl_Xplay.html");
                    var i = [
                        e,
                        "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/PrivacyAgreement/PrivacyAgreementBtn.png",
                        "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/PrivacyAgreement/Agree.png",
                        "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/PrivacyAgreement/Close.png"
                    ];
                    n.default.loadResArray(i, function (e, t) {
                        var n = cc.director.getScene();
                        (a.node_testPrivacyAgreement = new cc.Node("node_testPrivacyAgreement")),
                            n.addChild(a.node_testPrivacyAgreement),
                            (a.node_testPrivacyAgreement.x = cc.winSize.width / 2),
                            (a.node_testPrivacyAgreement.y = cc.winSize.height / 2),
                            cc.winSize.width < cc.winSize.height
                                ? (a.node_testPrivacyAgreement.scale = cc.view.getDesignResolutionSize().width / 1080)
                                : (a.node_testPrivacyAgreement.scale = cc.view.getDesignResolutionSize().height / 1080),
                            "" != a.AdGroup && (a.node_testPrivacyAgreement.group = a.AdGroup),
                            (a.node_testPrivacyAgreement.zIndex = 3e4);
                        var i = new cc.Node("main");
                        a.node_testPrivacyAgreement.addChild(i),
                            i.addComponent(cc.Sprite),
                            (i.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t[0])),
                            (i.x = 0),
                            (i.y = 0);
                        var r = new cc.Node("privacyAgreementBtn");
                        i.addChild(r),
                            r.addComponent(cc.Sprite),
                            (r.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t[1])),
                            r.addComponent(cc.Widget),
                            (r.getComponent(cc.Widget).isAlignRight = !0),
                            (r.getComponent(cc.Widget).right = 236),
                            (r.getComponent(cc.Widget).isAlignBottom = !0),
                            (r.getComponent(cc.Widget).bottom = 207);
                        var s = new cc.Node("agree");
                        i.addChild(s),
                            s.addComponent(cc.Sprite),
                            (s.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t[2])),
                            s.addComponent(cc.Widget),
                            (s.getComponent(cc.Widget).isAlignRight = !0),
                            (s.getComponent(cc.Widget).right = 23),
                            (s.getComponent(cc.Widget).isAlignBottom = !0),
                            (s.getComponent(cc.Widget).bottom = 50.5);
                        var l = new cc.Node("close");
                        i.addChild(l),
                            l.addComponent(cc.Sprite),
                            (l.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(t[3])),
                            l.addComponent(cc.Widget),
                            (l.getComponent(cc.Widget).isAlignLeft = !0),
                            (l.getComponent(cc.Widget).left = 24.5),
                            (l.getComponent(cc.Widget).isAlignBottom = !0),
                            (l.getComponent(cc.Widget).bottom = 51.5),
                            r.on(cc.Node.EventType.TOUCH_END, function () {
                                console.log("ChaoQiGameSDK", "点击隐私协议");
                            }),
                            s.on(cc.Node.EventType.TOUCH_END, function () {
                                a.hidePrivacyAgreement(), o(!0);
                            }),
                            l.on(cc.Node.EventType.TOUCH_END, function () {
                                a.hidePrivacyAgreement(), o(!1);
                            });
                    });
                }
            }),
            (e.prototype.getErrBannerFlag = function () {
                return !0;
            }),
            (e.prototype.showErrBanner = function (e) {
                var t = this;
                if (this.isShow_ErrBanner) console.log("ChaoQiGameSDK", "已经调用过showErrBanner,请勿重复调用");
                else {
                    (this.isShow_ErrBanner = !0),
                        this.hideBanner(),
                        console.log("ChaoQiGameSDK", "Test showErrBanner==================");
                    var o = this.getScene();
                    (this.node_testErrBanner = new cc.Node("node_testErrBanner")),
                        o.addChild(this.node_testErrBanner),
                        "" != this.AdGroup && (this.node_testErrBanner.group = this.AdGroup),
                        n.default.loadResArray(
                            [
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestBlackBg.png",
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestErrBannerReward.png",
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestErrBannerButton.png",
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestErrBannerProgress.png",
                                "https://tencentcnd.minigame.xplaymobile.com/Other/SDK/SDKImage4/Test/TestErrBannerBar.png"
                            ],
                            function (o, n) {
                                var a = new cc.Node("errBannerBg");
                                t.node_testErrBanner.addChild(a),
                                    a.addComponent(cc.Sprite),
                                    (a.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[0])),
                                    (a.width = cc.winSize.width),
                                    (a.height = cc.winSize.height),
                                    (a.x = cc.winSize.width / 2),
                                    (a.y = cc.winSize.height / 2),
                                    (a.opacity = 200);
                                var i = new cc.Node("reward");
                                t.node_testErrBanner.addChild(i),
                                    i.addComponent(cc.Sprite),
                                    (i.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[1])),
                                    (i.width = 0.62 * cc.winSize.width),
                                    (i.height = 1.15 * i.width),
                                    (i.x = cc.winSize.width / 2),
                                    (i.y = 0.7 * cc.winSize.height);
                                var r = new cc.Node("button");
                                t.node_testErrBanner.addChild(r),
                                    r.addComponent(cc.Sprite),
                                    (r.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[2])),
                                    r.addComponent(cc.Widget),
                                    (r.getComponent(cc.Widget).isAlignBottom = !0),
                                    (r.getComponent(cc.Widget).bottom = cc.winSize.height / 20),
                                    (r.width = 0.75 * cc.winSize.width),
                                    (r.height = 0.38 * r.width),
                                    (r.x = cc.winSize.width / 2);
                                var s = new cc.Node("progressBar");
                                t.node_testErrBanner.addChild(s),
                                    s.addComponent(cc.Sprite),
                                    (s.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(n[3])),
                                    s.addComponent(cc.ProgressBar),
                                    (s.getComponent(cc.Sprite).type = cc.Sprite.Type.FILLED),
                                    (s.getComponent(cc.Sprite).fillStart = 0),
                                    (s.getComponent(cc.Sprite).fillRange = 1);
                                var l = new cc.Node("bar");
                                s.addChild(l);
                                var c = l.addComponent(cc.Sprite);
                                (c.spriteFrame = new cc.SpriteFrame(n[4])),
                                    (c.fillType = cc.Sprite.FillType.HORIZONTAL),
                                    (c.type = cc.Sprite.Type.FILLED),
                                    (c.fillStart = 0),
                                    (c.fillRange = 1),
                                    (s.getComponent(cc.ProgressBar).barSprite = l.getComponent(cc.Sprite)),
                                    (s.getComponent(cc.ProgressBar).mode = cc.ProgressBar.Mode.FILLED),
                                    (s.getComponent(cc.ProgressBar).totalLength = s.width),
                                    (s.getComponent(cc.ProgressBar).progress = 0),
                                    (s.width = 0.75 * cc.winSize.width),
                                    (s.height = 0.06 * s.width),
                                    (s.x = cc.winSize.width / 2),
                                    (s.y = cc.winSize.height / 2),
                                    s.addComponent(cc.Widget),
                                    (s.getComponent(cc.Widget).isAlignBottom = !0),
                                    (s.getComponent(cc.Widget).bottom = cc.winSize.height / 5),
                                    (l.height = s.height),
                                    (l.x = -s.width / 2),
                                    (l.anchorX = 0),
                                    a.on(cc.Node.EventType.TOUCH_START, function () {});
                                var d = null,
                                    h = s.getComponent(cc.ProgressBar).progress;
                                r.on(cc.Node.EventType.TOUCH_START, function () {
                                    null == d &&
                                        (d = setInterval(function () {
                                            h >= 0.005 && ((h -= 0.005), (s.getComponent(cc.ProgressBar).progress = h));
                                        }, 100)),
                                        (h += 0.05),
                                        (s.getComponent(cc.ProgressBar).progress = h),
                                        h >= 0.5 &&
                                            !t.errBannerHasShowBanner &&
                                            (t.showBanner(),
                                            (t.errBannerHasShowBanner = !0),
                                            setTimeout(function () {
                                                t.hideBanner();
                                            }, 2e3)),
                                        h >= 0.99 && (null != d && clearInterval(d), t.hideErrBanner(), e(!0));
                                });
                            }
                        );
                }
            }),
            (e.prototype.hideErrBanner = function () {
                (this.isShow_ErrBanner = !1),
                    (this.errBannerHasShowBanner = !1),
                    this.node_testErrBanner &&
                        (console.log("ChaoQiGameSDK", "Test hideErrBanner=================="),
                        this.node_testErrBanner.removeFromParent(),
                        (this.node_testErrBanner = null));
            }),
            (e.prototype.getErrVideoFlag = function () {
                return !1;
            }),
            (e.prototype.buyProps = function (e, t, o, n) {
                n(!0, "testOrderId");
            }),
            (e.prototype.payComplete = function (e) {
                console.log("ChaoQiGameSDK", "Test payComplete==================", e);
            }),
            (e.prototype.getScene = function () {
                return cc.director.getScene();
            }),
            (e.prototype.hidePrivacyAgreement = function () {
                (this.isShow_PrivacyAgreement = !1),
                    this.node_testPrivacyAgreement &&
                        (console.log("ChaoQiGameSDK", "Test hidePrivacyAgreement=================="),
                        this.node_testPrivacyAgreement.removeFromParent(),
                        (this.node_testPrivacyAgreement = null));
            }),
            e
        );
    })();
o.default = a;
